package cn.krui.project.bean.article;

import java.sql.Timestamp;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotNull;
/**
 * @author: zc
 * email: zc8023zs@163.com
 * create_time: 2020/6/11 16:41:36
 * 分离出查询实体
 */
@ApiModel(value = "qr_article", description = "内容管理")
@TableName(value = "qr_article")
public class ArticleView {
	@ApiModelProperty(value = "主键id")
	@TableId(type = IdType.AUTO,value = "id")
	@NotNull(message = "主键id不能为空")
	private Integer id;
	@ApiModelProperty(value = "栏目id")
	@TableField(value="class_id")
	@NotNull(message = "栏目id不能为空")
	private Integer class_id;
	@ApiModelProperty(value = "标题")
	@TableField(value="title")
	@NotNull(message = "标题不能为空")
	private String title;
	@ApiModelProperty(value = "副标题")
	@TableField(value="short_title")
	private String short_title;
	@ApiModelProperty(value = "正文")
	@TableField(value="content")
	private String content;
	@ApiModelProperty(value = "正文1")
	@TableField(value="content1")
	private String content1;
	@ApiModelProperty(value = "正文2")
	@TableField(value="content2")
	private String content2;
	@ApiModelProperty(value = "内容模型:新闻=1 视频=2 文库=3 图片=4 下载=5 文章=6")
	@TableField(value="model_type")
	@NotNull(message = "内容模型不能为空")
	private Integer model_type;
	@ApiModelProperty(value = "状态:初稿=1 发布=2 已审核=3 流转中=4 驳回=5 草稿=6 下线=7")
	@TableField(value="status")
	private Integer status;
	@ApiModelProperty(value = "创建时间")
	@TableField(value="create_time")
	private Timestamp create_time;
	@ApiModelProperty(value = "发布时间")
	@TableField(value="release_time")
	private Timestamp release_time;
	@ApiModelProperty(value = "创建方式:直接创建=1 复制=2")
	@TableField(value="create_type")
	private Integer create_type;
	@ApiModelProperty(value = "排序")
	@TableField(value="sort")
	private Integer sort;
	@ApiModelProperty(value = "置顶方式:首页=1 栏目焦点=2")
	@TableField(value="top_type")
	private Integer top_type;
	@ApiModelProperty(value = "创建人id")
	@TableField(value="create_user_id")
	private Integer create_user_id;
	@ApiModelProperty(value = "创建人名称")
	@TableField(value="create_user")
	private String create_user;
	@ApiModelProperty(value = "保密级别:公开=1")
	@TableField(value="secret_level")
	private Integer secret_level;
	@ApiModelProperty(value = "数据版本字段")
	@TableField(value="version_id")
	@Version
	private Integer version_id;

 
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
 
	public Integer getClass_id() {
		return class_id;
	}
	public void setClass_id(Integer class_id) {
		this.class_id = class_id;
	}
 
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
 
	public String getShort_title() {
		return short_title;
	}
	public void setShort_title(String short_title) {
		this.short_title = short_title;
	}
 
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
 
	public String getContent1() {
		return content1;
	}
	public void setContent1(String content1) {
		this.content1 = content1;
	}
 
	public String getContent2() {
		return content2;
	}
	public void setContent2(String content2) {
		this.content2 = content2;
	}
 
	public Integer getModel_type() {
		return model_type;
	}
	public void setModel_type(Integer model_type) {
		this.model_type = model_type;
	}
 
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
 
	public Timestamp getCreate_time() {
		return create_time;
	}
	public void setCreate_time(Timestamp create_time) {
		this.create_time = create_time;
	}
 
	public Timestamp getRelease_time() {
		return release_time;
	}
	public void setRelease_time(Timestamp release_time) {
		this.release_time = release_time;
	}
 
	public Integer getCreate_type() {
		return create_type;
	}
	public void setCreate_type(Integer create_type) {
		this.create_type = create_type;
	}
 
	public Integer getSort() {
		return sort;
	}
	public void setSort(Integer sort) {
		this.sort = sort;
	}
 
	public Integer getTop_type() {
		return top_type;
	}
	public void setTop_type(Integer top_type) {
		this.top_type = top_type;
	}
 
	public Integer getCreate_user_id() {
		return create_user_id;
	}
	public void setCreate_user_id(Integer create_user_id) {
		this.create_user_id = create_user_id;
	}
 
	public String getCreate_user() {
		return create_user;
	}
	public void setCreate_user(String create_user) {
		this.create_user = create_user;
	}
 
	public Integer getSecret_level() {
		return secret_level;
	}
	public void setSecret_level(Integer secret_level) {
		this.secret_level = secret_level;
	}
 
	public Integer getVersion_id() {
		return version_id;
	}
	public void setVersion_id(Integer version_id) {
		this.version_id = version_id;
	}

}